﻿
(function($) {
    if (typeof (zyg) == 'undefined' ||
        typeof (zyg.sso) == 'undefined' ||
        typeof (zyg.validateTip) == 'undefined')
        return;

    if (typeof (zyg.sso.sysSettings) == 'undefined') {
        zyg.sso.sysSettings = {}
    }

    zyg.sso.sysSettings.page = {};

    zyg.sso.sysSettings.page.modify = function(formId) {
        $(function() {
            zyg.validateTip(formId, {
                pageSize: {
                    id: 'SettingRegisterPageSize',
                    pattern: '^\\d{1,100}$',
                    tip: 'List页面每页大小,必须为正整数',
                    err: '页数不合法'
                },
                copyright: {
                    id: 'SettingRegisterCopyright',
                    pattern: '^[_\\w\\W\\s\\u4e00-\\u9fa5\\.]{4,50}$',
                    tip: '版权信息,长度在4到50之间',
                    ok: '版权信息可用',
                    err: '版权信息不可用,长度必须在4到50之间'
                }
            }, {
                debug: false
            });
        });
    };
})(jQuery);